package com.xhs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体类
 * @author wudawei 356110537@qq.com
 * @date 2016-8-13
 */
public class User implements Serializable{
	private static final long serialVersionUID = -2994849398323131235L;
	
	private int id;
	private String userName;
	private String passWord;
	private int state;
	private Date createTime;
	
	public User() {
		super();
	}

	public User(int id, String userName, String passWord, int state,
			Date createTime) {
		super();
		this.id = id;
		this.userName = userName;
		this.passWord = passWord;
		this.state = state;
		this.createTime = createTime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "User [id=" + id + "\n" +
				"userName=" + userName + "\n" +
				"passWord=" + passWord + "\n" + 
				"state=" + state + "\n" +
				"createTime=" + createTime + "\n" +
				"]"+"\n";
	}
	
}
